<%= link_to 'Top', :controller => 'messages', :action => 'list' %>
<% if @request.path_parameters['controller'] != 'auth' %>
  |
  <%= link_to 'New message', :action => 'new' %>
<% end %>

